<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label for="parentid" class="control-label col-xs-12 col-sm-3">{:__('Parent')}:</label>
        <div class="col-xs-12 col-sm-6">
            <select id="parentid" data-rule="required" class="form-control selectpicker show-tick" name="row[parentid]" data-live-search="true">
                <option value="1">根目录</option>
                {foreach name="departments" item="vo"}
                <option value="{$vo->id}">&nbsp;&nbsp;{$vo->name}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="name" class="control-label col-xs-12 col-sm-3">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-6">
            <input type="text" class="form-control" id="name" name="row[name]" value="{$row.name}" data-rule="required" />
        </div>
    </div>
    <div class="form-group hide layer-footer">
        <label class="control-label col-xs-12 col-sm-3"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="button" class="btn btn-default btn-embossed" onClick="closeLayerWin(this)">{:__('Close')}</button>
        </div>
    </div>

</form>